home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / prompt30.arc / PROMPT30.DOC next >
Encoding:
Text File  |  1987-04-17  |  5.9 KB  |  133 lines

  1. ** PROMPT30.ARC **** SHORT, CLEAN & USEFUL DOS PROMPTS *** v.3.0 **** 12/12/86**
  2.  
  3. PURPOSE: To give users, when at the DOS level, concise but useful
  4.          information about the current: day of the week, date, time,
  5.          logged directory, and a highlighted DOS prompt while taking the
  6.          least possible amount of space in the DOS environment.
  7.  
  8.          (color system)
  9. FORMAT:  PROMPT sH$D│$T$h$h│ $pu$n$g
  10.  
  11.          (see below for a detailed explanation of the color prompt)
  12.  
  13.          (monochrome system)
  14.     or:  PROMPT sH$D│$T$h$h│$pu$n$g
  15.  
  16. REMARKS: For these prompts to work, (color or monochrome screen), ANSI.SYS
  17.          MUST be installed through CONFIG.SYS with the command:
  18.  
  19.                           DEVICE=[d:][path]ANSI.SYS
  20.  
  21.          in CONFIG.SYS and CONFIG.SYS must be located in the root directory
  22.          of the hard disk (or boot diskette), and the date and time MUST be
  23.          current.
  24.  
  25. NOTE:    When using the SET command to verify the status of the DOS
  26.          environment, these prompts will show only as: PROMPT=$n$g.
  27.  
  28.  
  29. USAGE:   The prompt is best placed in the AUTOEXEC.BOMPet but may be
  30.          created at any time via batchOMPeles.  (See the batchOfiles
  31.          included in the PROMPT30.ARC and listed below.)
  32.  
  33.                PROMPTC0.BT   for color screen (does not show the time)
  34.                PROMPTC1.BOOOfor color screen (shows the time)
  35.                PROMPTM0.BOOOfor monochrome screen (does not show the time)
  36.                PROMPTM1.BT   for monochrome screen (shows the time)
  37.  
  38.          You may of course rename these batchOMPeles to shorter names to
  39.          make it easier to execute them from keyboard entry.
  40.  
  41.          If these batchOfiles are missing create a batchOMPele whichOincludes
  42.          the following lines (for color screen):
  43.  
  44.          ECHO OFF
  45.          CLS
  46.          PROMPT sH$D│$T$h$h│$pu$n$g
  47.  
  48.          or the following lines (for monochrome screen):
  49.  
  50.          ECHO OFF
  51.          CLS
  52.          PROMPT sH$D│$T$h$h│$pu$n$g
  53.  
  54.  
  55. COLORS: The colors or screen attributes may be changed by modifying the
  56.         appropriate parameters shown with an underlining caret (^) below:
  57.  
  58.         (color)
  59.         PROMPT sH$D│$T$h$h│$pu$n$g
  60.                           ^^^^^^^^                          ^^^^^^^
  61.         (monochrome)
  62.         PROMPT sH$D│$T$h$h│$pu$n$g
  63.                           ^^                          ^^^^
  64.  
  65.         It is thus possible to create several batchOMPeles whichOoffer
  66.         various choices of prompts withOvarious colors or attributes
  67.         to meet one's needs or fancy.
  68.  
  69.  
  70. RESULTS: The prompt will show up in the following manner on the screen:
  71.  
  72.                           Fri  12-12│18:30│C:\DOS\UTIL
  73.                          |----1----|--2--|-----3-----|
  74.  
  75.        1. current day of the week and date (month and day only)
  76.        2. current time (updated only when the screen is refreshed)
  77.        1. current logged-in directory
  78.        always located at line 1, column 1 of the screen.  In addition,
  79.        the current drive will be highlited and shown as the regular
  80.        DOS prompt at its regular position as: C>
  81.  
  82. ********************************************************************************
  83. DETAILED EXPLANATION OF THE COLOR PROMPT
  84.  
  85. (color system)
  86. sH$D│$T$h$h│ $pu$n$g
  87.                                    
  88.   │  │  │  │  │  │  │└─┬─┘│ │ └┬┘└─┬┘││ │  │  │ │  │  │ │  │
  89.   │  │  │  │  │  │  │  │  │ │  │   │ ││ │  │  │ │  │  │ │  └───turn off colors
  90.   │  │  │  │  │  │  │  │  │ │  │   │ ││ │  │  │ │  │  │ └───the > character
  91.   │  │  │  │  │  │  │  │  │ │  │   │ ││ │  │  │ │  │  └───default drive letter
  92.   │  │  │  │  │  │  │  │  │ │  │   │ ││ │  │  │ │  └───set foreground to yellow
  93.   │  │  │  │  │  │  │  │  │ │  │   │ ││ │  │  │ └───set color to bright
  94.   │  │  │  │  │  │  │  │  │ │  │   │ ││ │  │  └───turn off colors
  95.   │  │  │  │  │  │  │  │  │ │  │   │ ││ │  └───restore cursor position
  96.   │  │  │  │  │  │  │  │  │ │  │   │ ││ └───current directory of default drive
  97.   │  │  │  │  │  │  │  │  │ │  │   │ │└───one space
  98.   │  │  │  │  │  │  │  │  │ │  │   │ └───vertical separator (ASCII 179)
  99.   │  │  │  │  │  │  │  │  │ │  │   └───backspace on seconds:hundredths (4chars)
  100.   │  │  │  │  │  │  │  │  │ │  └───2 erasing backspaces
  101.   │  │  │  │  │  │  │  │  │ └───print current time
  102.   │  │  │  │  │  │  │  │  └───vertical separator (ASCII 179)
  103.   │  │  │  │  │  │  │  └───backspace over year and 1 space (5 chars)
  104.   │  │  │  │  │  │  └───print date (day  date)
  105.   │  │  │  │  │  └───set background color to bleu
  106.   │  │  │  │  └───set foreground color to light green (yellow)
  107.   │  │  │  └───set color to bright
  108.   │  │  └───erase current line (line 1)
  109.   │  └───send cursor home (line 1; col 1)
  110.   └───save current cursor position before changing prompt
  111.  
  112.  
  113. The  characters are the ESC (ASCII 27) and left braket.
  114.  
  115. ********************************************************************************
  116. If you have a good tip or prompt, please share it.  Thank you.
  117.  
  118.                       Francois R. Brenot    *    12/12/86
  119.                       c/o International TeleSystems, Inc.
  120.                       415 N. Crescent Drive, Suite 120
  121.                       Beverly Hills, CA 90210
  122.                       (213) 274-7411 (voice)
  123.                       MCI Mail ID: 268-5665
  124.  
  125.                       You may also leave me a message on:
  126.  
  127.                       The Crest RBBS  *  Sysop: Eric Newhouse
  128.                       (The LAPALS RBBS with the PARADOX (PX) Conference)
  129.                       (213) 471-2518
  130.                       2400/1200bauds * 8-N-1 * 7-E-1 * 24 hours/7days
  131. ********************************************************************************
  132.